import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/im_users_list_entity.dart';

ImUsersListEntity $ImUsersListEntityFromJson(Map<String, dynamic> json) {
	final ImUsersListEntity imUsersListEntity = ImUsersListEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		imUsersListEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		imUsersListEntity.code = code;
	}
	final List<ImUsersListData>? data = jsonConvert.convertListNotNull<ImUsersListData>(json['data']);
	if (data != null) {
		imUsersListEntity.data = data;
	}
	return imUsersListEntity;
}

Map<String, dynamic> $ImUsersListEntityToJson(ImUsersListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	return data;
}

ImUsersListData $ImUsersListDataFromJson(Map<String, dynamic> json) {
	final ImUsersListData imUsersListData = ImUsersListData();
	final int? friendId = jsonConvert.convert<int>(json['friendId']);
	if (friendId != null) {
		imUsersListData.friendId = friendId;
	}
	final String? friendName = jsonConvert.convert<String>(json['friendName']);
	if (friendName != null) {
		imUsersListData.friendName = friendName;
	}
	final dynamic? isDisturb = jsonConvert.convert<dynamic>(json['isDisturb']);
	if (isDisturb != null) {
		imUsersListData.isDisturb = isDisturb;
	}
	final dynamic? isBlock = jsonConvert.convert<dynamic>(json['isBlock']);
	if (isBlock != null) {
		imUsersListData.isBlock = isBlock;
	}
	final String? ryUserId = jsonConvert.convert<String>(json['ryUserId']);
	if (ryUserId != null) {
		imUsersListData.ryUserId = ryUserId;
	}
	final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
	if (picUrl != null) {
		imUsersListData.picUrl = picUrl;
	}
	final String? nickName = jsonConvert.convert<String>(json['nickName']);
	if (nickName != null) {
		imUsersListData.nickName = nickName;
	}
	return imUsersListData;
}

Map<String, dynamic> $ImUsersListDataToJson(ImUsersListData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['friendId'] = entity.friendId;
	data['friendName'] = entity.friendName;
	data['isDisturb'] = entity.isDisturb;
	data['isBlock'] = entity.isBlock;
	data['ryUserId'] = entity.ryUserId;
	data['picUrl'] = entity.picUrl;
	data['nickName'] = entity.nickName;
	return data;
}